package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "table_area")
@Accessors(chain = true)
public class TableArea implements Serializable {
    /**
     * ID
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父id
     */
    @TableField(value = "pid")
    private Integer pid;

    /**
     * 简称
     */
    @TableField(value = "shortname")
    private String shortname;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 全称
     */
    @TableField(value = "mergename")
    private String mergename;

    /**
     * 层级 0 1 2 省市区县
     */
    @TableField(value = "level")
    private Byte level;

    /**
     * 拼音
     */
    @TableField(value = "pinyin")
    private String pinyin;

    /**
     * 长途区号
     */
    @TableField(value = "code")
    private String code;

    /**
     * 邮编
     */
    @TableField(value = "zip")
    private String zip;

    /**
     * 首字母
     */
    @TableField(value = "first")
    private String first;

    /**
     * 经度
     */
    @TableField(value = "lng")
    private String lng;

    /**
     * 纬度
     */
    @TableField(value = "lat")
    private String lat;

    private static final long serialVersionUID = 1L;

    public static final String COL_PID = "pid";

    public static final String COL_SHORTNAME = "shortname";

    public static final String COL_NAME = "name";

    public static final String COL_MERGENAME = "mergename";

    public static final String COL_LEVEL = "level";

    public static final String COL_PINYIN = "pinyin";

    public static final String COL_CODE = "code";

    public static final String COL_ZIP = "zip";

    public static final String COL_FIRST = "first";

    public static final String COL_LNG = "lng";

    public static final String COL_LAT = "lat";
}